"""
## 特征预处理
# 1.导入工具包
# 2.数据
# 3.实例化(归一化,标准化)
# 3-1 归一化
# 3-2 标准化
# 4.特征处理，fit_transform
x = [[90, 2, 10, 40], [60, 4, 15, 45], [75, 3, 13, 46]]
"""

# 1.导入工具包
from sklearn.preprocessing import MinMaxScaler,StandardScaler

# 2.数据(只有特征)
x = [[90, 2, 10, 40], [60, 4, 15, 45], [75, 3, 13, 46]]
print(x)

# 3.实例化(归一化,标准化)
# 3-1 归一化
minmax = MinMaxScaler()
# 3-2 标准化
std = StandardScaler()

# 4.特征处理，fit_transform
x_minmax = minmax.fit_transform(x)
x_std = std.fit_transform(x)
print(x_minmax)
print(x_std)
print(x_std.mean())
print(x_std.std())
